package com.block.match.service;

import com.alibaba.fastjson.JSONObject;
import com.block.common.vo.ResponseVo;
import com.block.db.entity.DataMatchOrderInfo;
import com.block.db.entity.DataMatchOrderItem;
import com.baomidou.mybatisplus.extension.service.IService;
import com.block.db.entity.MemberSourceInfo;
import com.block.merchant.model.result.MatchMerchantInfo;

/**
 * <p>
 * 商户匹配订单子项信息 服务类
 * </p>
 *
 * @author 
 * @since 2023-08-15
 */
public interface IDataMatchOrderItemService extends IService<DataMatchOrderItem> {

    DataMatchOrderItem initMatchOrderItem(MatchMerchantInfo matchMerchantInfo, DataMatchOrderInfo dataMatchOrderInfo, MemberSourceInfo memberSourceInfo);

    DataMatchOrderItem toPushItemOrder(String orderId, String itemOrderId) throws Exception;

    DataMatchOrderItem pushApiB(String orderId, String itemOrderId) throws Exception;

    JSONObject getLastedSuccessPushProduct(Long uid);

    ResponseVo getOrderSuccessList(Long uid);
}
